<!DOCTYPE html>
<html lang="en" ng-app>

<head>
    <meta charset="UTF-8">
    <title>{{'AngularJS'}}</title>
    <script type="text/javascript" src="//cdn.bootcss.com/angular.js/1.4.5/angular.js"></script>
</head>

<body>
    <!--当在输入框中输入name之后，在h1中将立刻显示出来-->
    <input type="text" ng-model="name" placeholder="Enter name here" />
    <h1>Hello, {{name || 'AngularJS'}}</h1>
</body>

</html>
